-
Notifications
You must be signed in to change notification settings - Fork 78
Add timeout option #104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add timeout option #104
Conversation
Signed-off-by: Shizuo Fujita <[email protected]>
Hmm, looks like the socket settings created with Socket.tcp different... |
Signed-off-by: Shizuo Fujita <[email protected]>
fluent-logger.gemspec
Outdated
@@ -21,6 +21,8 @@ Gem::Specification.new do |gem| | |||
gem.require_paths = ['lib'] | |||
gem.license = "Apache-2.0" | |||
|
|||
gem.required_ruby_version = '>= 3.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems TCPSocket.new
supports connect_timeout
and resolv_timeout
since Ruby 3.0
https://github.com/ruby/ruby/blob/v3_0_0/ext/socket/tcpsocket.c#L23-L51
Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for this improvement!
Looks good to me about adding connect_timeout
option.
About resolv_timeout
, I have some concerns, and commented below.
Could you please check it?
Signed-off-by: Shizuo Fujita <[email protected]>
Signed-off-by: Shizuo Fujita <[email protected]>
Fix #103